<?php require_once LAYOUTPATH.'layout_header.php'; ?>

<h1>Reported Bugs</h1>

<?php foreach ($bugs->result() as $bug): ?>
	<div style="background: #f3f3f3; padding: 5px; margin-bottom: 13px;">
		<?php $bug_data = unserialize($bug->data); ?>
		<h2>Reported <?php echo timespan(strtotime($bug->created_at)); ?> ago</h2>
		<pre><?php echo $bug->report; ?></pre>
		<pre><?php print_r($bug_data); ?></pre>
	</div>
<?php endforeach; ?>

<?php require_once LAYOUTPATH.'layout_footer.php'; ?>